package com.bit.net.component.data.client;

import com.bit.net.BaseNettyClient;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioSocketChannel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.net.InetSocketAddress;

/**
 * 服务
 * <p>
 * 开启服务
 * </p>
 *
 * @since 2018/10/10
 */
@Slf4j
@Component
public class DataClient extends BaseNettyClient {

    public DataClient(@Value("${data.client.connect.host}") String host, @Value("${data.client.connect.port}") Integer port, @Autowired DataClientChannelInitializer channelInitializer) {
        super(host, port, channelInitializer);
    }

}
